package com.yc.boot.train.model.find;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * Create with IntelliT IDEA
 *
 * @Author: zhengmingzhe
 * @Date: 2022/01/11/13:56
 * @Description:
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "通知公告")
public class NoticeMessage {
    @TableId("n.id")
    @ApiModelProperty(value = "公告表id")
    private Long id;

    @ApiModelProperty("公告标题")
    private String noticeName;

    @ApiModelProperty("公告简介")
    private String noticeIntro;

    @ApiModelProperty("公告内容")
    private String noticeContent;

    @ApiModelProperty("发布时间")
    private String releaseTime ;

    @TableField("n.create_by")
    @ApiModelProperty("发布人id")
    private Long createBy ;

    @ApiModelProperty("发布人")
    private String createPerson;

    @TableField(value = "n.is_del")
    @TableLogic(delval = "1", value = "0")
    @ApiModelProperty(value = "是否已删除")
    private Boolean isDelete;
}
